<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/com/include/declare.jspf" %>
<%-- 
    JSP Name : counsel_car02.jsp
    Description : 시승 차량 조회
    author SJYoon
    since 2012. 6. 25.
    version 1.0
    Modification Information
       since          author              description
    ===========    =============    ===========================
    2012. 6. 25.     SJYoon     최초 생성
--%>
                            
                                
                            <c:set var="t" scope="page" value="1"></c:set>
                            <c:set var="size" scope="page" value="${fn:length(carList) }" />
                            
                            <c:if test="${size != 0 }" >
                            <c:forEach var="j" begin="0" end="${size }" >
                            
                            <c:if test="${t % 3 == 1 }">
                                <div class="section"></c:if>
                                    
                                    <c:if test="${not empty carList[j].carCd }">
                                    <div class="cell">
                                    <c:choose>
                                        <c:when test="${not empty carList[j].vehlImageName}">
                                        <img src="/kr/file/imagePathView.do?nrFilNm=trcarimage/${carList[j].vehlImageName}" alt="${carList[j].carn } 이미지" class="car-thumb" />
                                        </c:when>
                                        <c:when test="${empty carList[j].vehlImageName}">
                                        <img src="/kr/temp/@car_150x90.jpg" alt="차량 이미지" class="car-thumb" />
                                        </c:when>
                                    </c:choose>
                                        <div class="information">
                                            <input type="radio" class="check" name="carCdL" id="carCdL" value="${carList[j].carCd }" onclick="getCalendar('${carList[j].carCd}','${carList[j].carSaleCd }','${carList[j].strtYmd }','${carList[j].fnhYmd }');choiceCar('${carList[j].saleCtyHanNm}','${carList[j].xrclCtyNm }','${carList[j].carn}','${carList[j].vehlImageName}');" />
                                            <p class="name">${carList[j].carn }</p>
                                            <p class="detail">${carList[j].xrclCtyNm } | 
                                                <c:if test="${not empty carList[j].carDtlInfo }">${carList[j].carDtlInfo }</c:if>
                                                <c:if test="${empty carList[j].carDtlInfo }">${carList[j].saleCtyHanNm}</c:if>                                             
                                            </p>
                                        </div>
                                    </div>
                                    </c:if>
                                    
                            <c:if test="${t % 3 == 0 || j == size }"></div></c:if>
                            <c:set var="t" scope="page" value="${t+1 }"></c:set>
                            </c:forEach>
                            </c:if>
                            <c:if test="${size == 0 }" >
                                <div class="section">
                                            시승 가능한 차량이 없습니다.
                                </div>
                            </c:if>
                            
                            

                                
